package com.example.shopping;

import java.util.ArrayList;


//singleton class
public class GroceryArray extends ArrayList<GroceryListItem> {

	private static GroceryArray GroceryListArr = new GroceryArray();
	//private constructor - preventing other classes to build another instance
	private GroceryArray() {}

	// Static 'instance' method
	public static GroceryArray getInstance() 
	{
		return GroceryListArr;
	}
}





